CPP=g++

LINKS	= -lpthread -locci -lclntsh /usr/lib/i386-linux-gnu/libstdc++.so.5

OBJS	= main.o

EXE		= test.out

INC_ORA	= $(ORACLE_HOME)/rdbms/public/
LIB_ORA	= $(ORACLE_HOME)/lib/

INC		= -I$(INC_ORA)
LIB		= -L$(LIB_ORA) 

all:$(EXE)

$(EXE):$(OBJS)
		 $(CPP) $(CFLAGS) $(OBJS) $(LIB) -o $@  $(LINKS)

%.o:%.cpp
		 $(CPP) $(CFLAGS) $(INC) -c $(INC) $<

clean:
	rm -rf $(OBJS)
	rm -rf $(EXE)

